<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看菜单</title>
    <link href="${request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/fonts/font-awesome.css" rel="stylesheet">
    <link href="${request.contextPath}/static/css/animate.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/jdGrid/ui.jqgrid.css" rel="stylesheet" type="text/css"/>
    <link href="${request.contextPath}/static/css/style.css" rel="stylesheet">
    <script type="text/javascript">
        var ctx = "";
        var __cityId = "";
    </script>
    <link href="/static/ajax/libs/iCheck/custom.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper">
    <div class="row">
        <div class="ibox">
            <div class="ibox-content">
                <form  class="form-horizontal" id="defaultForm">
                    <fieldset disabled>
                        <div class="form-group"><label class="col-sm-2 control-label">上级菜单</label>
                            <div class="col-sm-10">
                                <div class="input-group">
                                    <#if menu2??>
                                        <input id="menuName" name="parent.name" readonly="readonly" type="text" value="${menu2.menuName}"
                                               class="form-control required">
                                        <#else>
                                        <input id="menuName" name="parent.name" readonly="readonly" type="text" value="已是最上级菜单"
                                                   class="form-control required">
                                    </#if>
                                    <span class="input-group-btn">
                                 <button type="button" id="menuButton" class="btn   btn-primary"><i
                                             class="fa fa-search"></i></button>
                             </span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font color="red">*</font>名称</label>
                            <div class="col-sm-10">
                                <input id="name" name="menuName" class="required form-control" type="text" value="${menu1.menuName}" maxlength="50" >
                            </div>
                        </div>
                        <div class="form-group"><label class="col-sm-2 control-label">链接</label>

                            <div class="col-sm-10">
                                <input id="href" name="url" class="form-control " type="text" value="${menu1.url}"
                                       maxlength="2000">
                                <span class="help-block m-b-none">点击菜单跳转的页面</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">图标</label>
                            <div class="col-sm-10">
                                <input id="icon" name="icon" class="form-control " type="text" value="${menu1.icon}">
                                <span class="help-block m-b-none">参考Font Awesome 4.7.0</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><font color="red">*</font>排序</label>
                            <div class="col-sm-10">
                                <input id="orderNum" name="orderNum" class="required digits form-control " type="text" value="${menu1.orderNum}"
                                       maxlength="50"/>
                                <span class="help-block m-b-none">排列顺序，升序</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">权限标识</label>
                            <div class="col-sm-10"><input id="perms" name="perms" class="form-control " type="text" value="${menu1.perms}" maxlength="100">
                                <span class="help-block m-b-none">控制器中定义的权限标识，如@RequiresPermissions("权限标识")</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-10">
                                <textarea id="remark" name="remark" maxlength="200" class="form-control" rows="3">${menu1.remark}</textarea>
                            </div>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>